const App = getApp();
Page({
    data: {
        dataList:[]
    },
    onLoad: function (options) {
        let _this = this;
        App._post_form('live/get_rooms', {

        }, function(result) {
            console.log('liveRet',result)
            if (result.code==1){
                _this.setData({
                    dataList:result.data.data
                });
                if(result.data.code==-1){
                  wx.showModal({
                    title: '温馨提示',
                    content: result.data.msg,
                    complete: (res) => {

                        //回到首页
                        wx.navigateBack()
                    }
                  })
                }
            }
        });

    }
});